<%-- 
    Document   : hs_info
    Created on : Oct 5, 2012, 5:36:07 PM
    Author     : TienNT
--%>

<%@page import="thitracnghiem.CaThi"%>
<%@page import="thitracnghiem.DeThi"%>
<%@page import="thitracnghiem.SinhVien"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            DeThi deThi = (DeThi) request.getSession().getAttribute("dethi");
            SinhVien sinhVien = (SinhVien) request.getSession().getAttribute("sinhvien");
            CaThi caThi = (CaThi) request.getSession().getAttribute("cathi");
        %>
        <div style="margin-top: 50px">
            <table>
                <tr>
                    <td><b>Mon thi: </b></td>
                    <td><%=deThi.getTenMonThi()%></td>
                </tr>
                <tr>
                    <td><b>Lan thi: </b></td>
                    <td><%=deThi.getLanThi()%></td>
                </tr>
            </table>
            <br>
            <br>
            <table>
                <tr>
                    <td><b>Ho ten: </b></td>
                    <td><%=sinhVien.getHoTenSV()%></td>
                </tr>
                <tr>
                    <td><b>Ma so SV: </b></td>
                    <td><%=sinhVien.getMaSV()%></td>
                </tr>
                <tr>
                    <td><b>Lop: </b></td>
                    <td><%=sinhVien.getLop()%></td>
                </tr>
            </table>
            <br>
            <br>
            
            <div style="display: none" id="tg">
                <%=caThi.getThoiGianKetThucThi()%>
            </div>
            <script language="JavaScript">
                TargetDate = document.getElementById("tg").innerHTML;
                ForeColor = "navy";
                CountActive = true;
                CountStepper = -1;
                LeadingZero = true;
                DisplayFormat = "%%H%% h, %%M%% m, %%S%% s remaining.";
            </script>
            
            <script language="JavaScript" src="countdown.js"></script>
        </div>
    </body>
</html>